if(!window.mc){
	window.mc = function(){}
}
if(!mc.game){
	mc.game = function(){}
}
mc.game.load_proto = function(){
	if(!mc.game.reference){
		mc.game.reference = {};
	}
	var param = [];
	for(var i = 0; i < arguments.length;i++){
		var type = arguments[i];
		if(!mc.game.reference[type]){
			param.push({name:"list",value:type});
		}
	}
	if(param.length > 0){
		param.push({name:"cmd",value:"reference.load"});
		return mc.request(
			"game",
			param,
			function(data){
				for(var type in data){
					this[type] = {};
					for(var i = 0; i < data[type].length; i++){
						this[type][data[type][i].entry] = data[type][i];
					}
				}
			},
			mc.game.reference
		);
	}
	return false;
}
mc.game.get_proto = function(type){
	return mc.game.reference[type];
}
